﻿<%@ Page Title="" Language="VB" MasterPageFile="~/MasterPage/MasterPage.master" AutoEventWireup="false" CodeFile="Prodejci.aspx.vb" Inherits="Pages_Prodejci" %>

<asp:Content ID="Content1" ContentPlaceHolderID="Hlavni" Runat="Server">

<h1><asp:Localize ID="Localize1" runat="server" Text='<%$ Resources: title %>'></asp:Localize></h1> 

    <asp:SqlDataSource ID="DS_Prodejci" runat="server" ConnectionString="<%$ ConnectionStrings:DataHorejsi %>"
        SelectCommand="SELECT Misto, Nazev, Telefon, Stranky, Mail, Zeme FROM T_Prodejci ORDER BY Zeme,Misto, Nazev">
    </asp:SqlDataSource>
    <div class="prodejci">
    <asp:GridView ID="GV_Prodejci" runat="server" AutoGenerateColumns="False" DataSourceID="DS_Prodejci"
        Width="600px">
        <RowStyle Height="60px" Width="600px" HorizontalAlign="Left" />
        <Columns>
            <asp:BoundField DataField="Misto" HeaderText='<%$ Resources: place %>' SortExpression="Misto" />
            <asp:BoundField DataField="Nazev" HeaderText='<%$ Resources: name %>' SortExpression="Nazev" />
            <asp:BoundField DataField="Telefon" HeaderText='<%$ Resources: telefon %>' SortExpression="Telefon" />
            <asp:HyperLinkField DataNavigateUrlFields="Stranky" DataNavigateUrlFormatString="http://{0}"
                DataTextField="Stranky" HeaderText='<%$ Resources: web %>' Target="_blank" />
            <asp:TemplateField HeaderText="Mail" >
                <ItemTemplate>
                    <asp:HyperLink ID="HyperLink1" runat="server" NavigateUrl='<%# Eval("Mail", "mailto:{0}") %>'
                        Text='<%# Eval("Mail") %>'></asp:HyperLink>
                </ItemTemplate>
            </asp:TemplateField>
            <asp:BoundField DataField="Zeme" HeaderText='<%$ Resources: country %>' SortExpression="Zeme" ItemStyle-HorizontalAlign="Center" />
        </Columns>
        <HeaderStyle CssClass="hlavickaTabulky" />
        <AlternatingRowStyle BackColor="#E1E1E1" />
    </asp:GridView>
    </div>
</asp:Content>

